package com.ruoyi.service.impl;

import com.ruoyi.domain.BasisSnapshot;
import com.ruoyi.mapper.BasisSnapshotMapper;
import com.ruoyi.service.BasisSnapshotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BasisSnapshotServiceImpl implements BasisSnapshotService {

    @Autowired
    BasisSnapshotMapper basisSnapshotMapper;


    @Override
    public boolean addBasisSnapshot(BasisSnapshot basisSnapshot) {
        return basisSnapshotMapper.addBasisSnapshot(basisSnapshot);
    }

    @Override
    public List<BasisSnapshot> findByTime(String currentTime) {
        return basisSnapshotMapper.findByTime(currentTime);
    }

    @Override
    public List<BasisSnapshot> findByloadingIdFormBasisSnapshot(String loadingId) {
        return basisSnapshotMapper.findByloadingIdFormBasisSnapshot(loadingId);
    }
}
